<?php
if($_POST['xmlhttp']){
	include_once('config.php');
	
	$to       = $_POST['email'];
	$subject  = "=?UTF-8?B?".base64_encode('档案认领未能成功')."?="; 
	$headers  = 'MIME-Version: 1.0' . "\r\n"; 
	$headers .= 'Content-type: text/plain; charset=utf-8' . "\r\n"; 
	$headers .= 'To: =?UTF-8?B?' .''. '?= <' . $to .'>' . "\r\n"; 
	$headers .= 'From: =?UTF-8?B?' . base64_encode('青铜') . '?=' . ' <forestyaser@163.com>' . "\r\n"; 
	$headers .= 'Reply-To: Admin <forestyaser@163.com>' . "\r\n"; 
	$message .= '  很遗憾，您未能成功认领此档案 ' . my_base_url . my_pligg_base . '/user.php?uid=' .$_POST['profile']. "  \r\n\r\n";
	$message .= "\r\n\r\n" . '  人物系统致力于推荐有价值的人和物，欢迎您使用' . "\r\n\r\n";
	$message .= '  有任何疑问请咨询站务 青铜 forestyaser@163.com  谢谢！';

	if (mail($to, $subject, $message, $headers)) {echo 'success';} else {echo 'fail';}
}
?>